package com.kehutong.crm.message.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;
import com.kehutong.crm.message.enums.MessageType;

@Deprecated
@Table(value="t_message_user", comment="用户消息管理", multi=true, idType = IDType.TIMESTAMP)
public class MessageUser extends Entity {

    private static final long serialVersionUID = 8201824996444632802L;

    protected MessageUser(String id) {
        super(id);
    }

    @Column(comment = "用户ID")
    private String uuid;

    @Column(comment = "聚合消息ID")
    private String msgId;

    @Column(comment = "聚合消息类型")
    private MessageType type;

    @Column(comment="消息标题")
    private String title;

    @Column(comment="分类ID")
    private String classifyId;

    @Column(comment="分类名称")
    private String classifyName;

    @Column(comment = "发布状态")
    private boolean releaseStatus;

    @Column(comment="逻辑删除")
    private boolean deleted;

    @Column(comment = "是否已阅")
    private boolean read;

    @Column(comment = "是否用户创建")
    private boolean userCreate;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public MessageType getType() {
        return type;
    }

    public void setType(MessageType type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getClassifyId() {
        return classifyId;
    }

    public void setClassifyId(String classifyId) {
        this.classifyId = classifyId;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public boolean isReleaseStatus() {
        return releaseStatus;
    }

    public void setReleaseStatus(boolean releaseStatus) {
        this.releaseStatus = releaseStatus;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public boolean isRead() {
        return read;
    }

    public void setRead(boolean read) {
        this.read = read;
    }

    public boolean isUserCreate() {
        return userCreate;
    }

    public void setUserCreate(boolean userCreate) {
        this.userCreate = userCreate;
    }
}
